Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert bare except to exceptions raised by json.loads() #133

Closed
wants to merge 1 commit into from

Conversation

benjamb
Copy link
Contributor

@benjamb benjamb commented Aug 28, 2024

No description provided.

@@ -581,7 +581,7 @@ async def publish_build(session, build_url, wait, token):
elif current_state == "validating":
print("the build is still being validated or held for review")
return {}
except:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bare except in particular would silently swallow the ApiError explicitly raised within the above try block.

@benjamb
Copy link
Contributor Author

benjamb commented Aug 28, 2024

Closing as this was merged with #135.

@benjamb benjamb closed this Aug 28, 2024
@benjamb benjamb deleted the bare-except branch August 28, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant